

-- D:\GOA\reslibrary\templete\res\item\item.phone.lua.xsl
gr_module("gm_xinbanchunzhongyun")

cgfprocessitemItem = inherit(GmCtrl.ControlBase):name("cgfprocessitemItem")

cgfprocessitemItem.init = function (self,parent,aid)

	local top = self
	local win = parent.hostWindow
	local fid = aid or "cgfprocessitemItem"
	GmCtrl.ControlBase.init(self,parent,fid,true)

	
	self.id = self:get_child("id")
	
	self.step_id = self:get_child("step_id")
	
	self.order_id = self:get_child("order_id")
	
	self.order_code = self:get_child("order_code")
	
	self.entire_type = self:get_child("entire_type")
	
	self.quantity = self:get_child("quantity")
	
	self.price = self:get_child("price")
	
	self.money = self:get_child("money")
	
	self.worker_id = self:get_child("worker_id")
	
	self.worker = self:get_child("worker")
	
	self.status = self:get_child("status")
	
	self.start_time = self:get_child("start_time")
	
	self.time = self:get_child("time")
	
	self.finish_date = self:get_child("finish_date")
	
	self.disable = self:get_child("disable")
	
	self.note = self:get_child("note")
	
	self.complete_date = self:get_child("complete_date")
	
	self.line = self:get_child("line")
	
	self.product_name = self:get_child("product_name")
	
	self.product_code = self:get_child("product_code")
	
	self.customer_name = self:get_child("customer_name")
	
	self.order_status = self:get_child("order_status")
	
	self.handler_id = self:get_child("handler_id")
	
	self.handler = self:get_child("handler")
	
	
	self:set_click(function(self)
		local ttop = top
		top.hostWindow:addNavFrame('__modal__info',nil,function(frame)
			local tttop = ttop
			print('########## $$$$$$$ 0')
			if frame and frame.set_data then
				frame:set_data(tttop.data)
			end
		end)
	end)
	
	
end


cgfprocessitemItem.set_data = function(self,data)
	self.data = data
	for a,b in pairs(data) do
		if data[a] and self[a] and self[a].set_inner_text and self[a].is_init and self[a]:is_init() then
			self[a]:set_inner_text(tostring(data[a]))
		end
	end
end


	